package com.example.moviegroup.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.moviegroup.R;

/**
 * Created by walymin-love on 2015/11/18.
 */
public class ZhuCeActivity extends Activity implements View.OnClickListener {
    Button btn_back,btn_tijiao,btn_denglu,btn_huoqu;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_zhuce);
        initView();
        setListener();
        initData();
    }

    public void initView() {
        btn_back = (Button) findViewById(R.id.btn_zhuce_back);
        btn_tijiao = (Button) findViewById(R.id.btn_zhuce_tijiao);
        btn_denglu = (Button) findViewById(R.id.btn_zhuce_denglu);
        btn_huoqu = (Button) findViewById(R.id.btn_zhuce_huoqu);
    }

    public void setListener() {
        btn_back.setOnClickListener(this);
        btn_huoqu.setOnClickListener(this);
        btn_tijiao.setOnClickListener(this);
        btn_denglu.setOnClickListener(this);
    }

    public void initData() {
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.btn_zhuce_back:
                finish();
                break;
            case R.id.btn_zhuce_denglu:
                Intent intent = new Intent(ZhuCeActivity.this,LoginActivity.class);
                startActivity(intent);
                break;
            case R.id.btn_zhuce_huoqu:

                break;
            case R.id.btn_zhuce_tijiao:

                break;
        }

    }
}
